const merge = require('webpack-merge')
const BaseModules = require('../BaseModules')
const renderNormalModule = require('./renderNormalModule')


module.exports = new class {
	constructor(){
		this.normalWebpackConf = this.createNormalWebpackConf()
	}

	createNormalWebpackConf(){
		const bundleList = BaseModules.createBundleList()

		return bundleList.reduce((pre, cur) => {

			pre.push(renderNormalModule(cur))
			return pre

		}, [])
	}
}